 <include file="Public:head" /> 
 <link rel="stylesheet" href="{weixin::STATICS}/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="{weixin::STATICS}/kindeditor/plugins/code/prettify.css" />
<script src="{weixin::STATICS}/kindeditor/kindeditor.js" type="text/javascript"></script>
<script src="{weixin::STATICS}/kindeditor/lang/zh_CN.js" type="text/javascript"></script>
<script src="{weixin::STATICS}/kindeditor/plugins/code/prettify.js" type="text/javascript"></script>
<script src="/tpl/static/artDialog/jquery.artDialog.js?skin=default"></script>
<script src="/tpl/static/artDialog/plugins/iframeTools.js"></script>
<script>
var editor;
KindEditor.ready(function(K) {
editor = K.create('#intro', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : true,
uploadJson : '/index.php?g=User&m=Upyun&a=kindedtiropic',
items : [
'source','undo','clearhtml','hr','fontsize','forecolor','hilitecolor',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image','link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
});
editor = K.create('#technical_desc', {
	resizeType : 1,
	allowPreviewEmoticons : false,
	allowImageUpload : true,
	uploadJson : '/index.php?g=User&m=Upyun&a=kindedtiropic',
	items : [
	'source','undo','clearhtml','hr','fontsize','forecolor','hilitecolor',
	'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
	'insertunorderedlist', '|', 'emoticons', 'image','link', 'unlink','baidumap','lineheight','table','anchor','preview','print','template','code','cut']
	});
});
</script>
<input type="hidden" id="catUrl" value="{weixin::U('Product/ajaxCatOptions',array('token'=>$token))}" />
  <div class="content" style="width:920px; background:none; margin-left:275px; border:none; margin-bottom:30px;" > 
   <div class="cLineB"> 
    <h4>专家设置</h4> 
    <a href="{weixin::U('Expert/index',array('token'=>$token))}" class="right  btnGreen" style="margin-top:-27px">返回</a> 
   </div> 
   <form class="form" method="post" action="" enctype="multipart/form-data"> 
<if condition="$isUpdate eq 1">
<input type="hidden" name="expert_id" value="{weixin:$set.expert_id}" />
</if>
    <div class="msgWrap bgfc"> 
     <table class="userinfoArea" style=" margin:0;" border="0" cellspacing="0" cellpadding="0" width="100%"> 
      <tbody> 
       <tr> 
        <th><span class="red">*</span>专家名称：</th> 
        <td><input type="text" name="expert_name" value="{weixin:$set.expert_name}" class="px" style="width:400px;" /></td> 
       </tr> 
        <th><span class="red">*</span>认证状态：</th> 
        <td>
        <input type="text" name="auth_status" <if condition="$set.auth_status eq 1">value="已认证"<else/>value="未认证"</if> style="width:400px;" disabled="disabled"/></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>关联微信账号：</th> 
        <td><select id="userinfo_id" name="userinfo_id"><option value="0">请选择...</option>{weixin:$wxusersOptions}</select></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>专家级别：</th> 
        <td><select id="level_id" name="level_id"><option value="0">请选择专家级别...</option>{weixin:$levelsOptions}</select></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>职称：</th> 
        <td><select id="title_id" name="title_id"><option value="0">请选择职称...</option>{weixin:$titlesOptions}</select></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>公司：</th> 
        <td><input type="text" name="company" value="{weixin:$set.company}" class="px" style="width:400px;" /></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>手机号码：</th> 
        <td><input type="text" name="mobile" value="{weixin:$set.mobile}" class="px" style="width:400px;" /></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>联系电话：</th> 
        <td><input type="text" name="telephone" value="{weixin:$set.telephone}" class="px" style="width:400px;" /></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>生日：</th> 
        <td><input type="text" name="birthday" value="{weixin:$set.birthday}" class="px" style="width:400px;" /></td> 
       </tr>
        <tr> 
        <th><span class="red">*</span>关键词：</th>
        <td><input type="text" name="keywords" value="{weixin:$set.keywords}" class="px" style="width:400px;" /></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>支付宝账号：</th>
        <td><input type="text" name="alipay_account" value="{weixin:$set.alipay_account}" class="px" style="width:400px;" /></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>微信账号：</th>
        <td><input type="text" name="wx_account" value="{weixin:$set.wx_account}" class="px" style="width:400px;" /></td> 
       </tr>
       <tr> 
        <th><span class="red">*</span>满意度：</th>
        <td><input type="text" name="satisfaction" value="{weixin:$set.satisfaction}" class="px" style="width:400px;" /></td> 
       </tr>
        <tr> 
        <th><span class="red">*</span>头像地址：</th>
        <td><input type="text" name="head_img" value="{weixin:$set.head_img}" class="px" id="pic" style="width:400px;" />  <script src="/tpl/static/upyun.js"></script><a href="###" onclick="upyunPicUpload('pic',700,700,'{weixin:$token}')" class="a_upload">上传</a> <a href="###" onclick="viewImg('pic')">预览</a></td> 
       </tr>
        <TR>
                  <TH valign="top"><label for="info">个人简介：</label></TH>
                  <TD><textarea name="personal_profile" id="intro"  rows="5" style="width:590px;height:360px">{weixin:$set.personal_profile}</textarea></TD>
                </TR>  
       <TR>
                  <TH valign="top"><label for="desc">技能描述：</label></TH>
                  <TD><textarea name="technical_desc" id="technical_desc"  rows="5" style="width:590px;height:360px">{weixin:$set.technical_desc}</textarea></TD>
                </TR>  
       <tr>         
       <th>&nbsp;</th>
       <td>
       <input type="hidden" value="{weixin:$token}" name="token" /></if>
       <button type="submit" name="button" class="btnGreen">保存</button> &nbsp; <a href="{weixin::U('Expert/index',array('token'=>$token))}" class="btnGray vm">取消</a></td> 
       </tr> 
      </tbody> 
     </table> 
     </div>
    
   </form> 
  </div> 
  <include file="Public:footer" />